<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>

    <link href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
    <title>徐佳灵的天气预报</title>
</head>
<body>

<div class="container">

    <div class="row">
        <h3 th:text="${title}">xvjialing</h3>

        <select class="custom-select">
            <option th:each="city : ${cityList}"
                    th:value="${city.code}"
                    th:text="${city.description}"
                    th:selected="${city.code eq cityCode}"/>
        </select>
    </div>

    <div class="row">
        <h1 th:text="${report.city}">城市名称</h1>
    </div>

    <div class="row">
        <p>
            空气质量指数：<span th:text="${report.aqi}"></span>
        </p>
    </div>

    <div class="row">
        <p>
            当前温度：<span th:text="${report.wendu}"></span>
        </p>
    </div>

    <div class="row">
        <p>
            温馨提示：<span th:text="${report.ganmao}"></span>
        </p>
    </div>

    <div class="row">
        <div class="card" th:each="forecast : ${report.forecast}">
            <div class="card-body border-info">
                <p class="card-text text-info" th:text="${forecast.date}">日期</p>
                <p class="card-text" th:text="${forecast.high}">最高气温</p>
                <!--<p th:text="${forecast.fengli}">风力</p>-->
                <p class="card-text" th:text="${forecast.low}">最低气温</p>
                <p class="card-text" th:text="${forecast.fengxiang}">风向</p>
                <p class="card-text" th:text="${forecast.type}">类型</p>
            </div>
        </div>
    </div>

</div>


<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/popper.js/1.13.0/umd/popper.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
</body>
</html>